package com.ybwh.springboot2.controller;

import com.ybwh.springboot2.common.RespData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 登录逻辑的控制器
 * </p>
 *
 * @author fanbeibei
 * @version V1.0
 * @since 2019/12/20 21:51
 */
@Slf4j
@Controller
@RequestMapping("/")
@Api(tags = "数据首页")
public class LoginController {

    @ApiOperation(value = "数据首页分页查询")
    @RequestMapping("/login")
    public ModelAndView loginPage() {
        ModelAndView mav = new ModelAndView("/login");

        return mav;
    }


    @ResponseBody
    @RequestMapping("/doLogin")
    public RespData<Object> doLogin() {


        return RespData.successResp(null);
    }
}
